package com.zmj.entity;

public class User {
    private int tid;
    private  String userName;
    private  String password;
    private  String img;


    public User() {
    }

    public User(int tid, String userName, String password, String img) {
        this.tid = tid;
        this.userName = userName;
        this.password = password;
        this.img = img;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"tid\":")
                .append(tid);
        sb.append(",\"userName\":\"")
                .append(userName).append('\"');
        sb.append(",\"password\":\"")
                .append(password).append('\"');
        sb.append(",\"img\":\"")
                .append(img).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
